package edu.langnan.xiaoli.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.langnan.xiaoli.core.domain.RoleDO;
import edu.langnan.xiaoli.core.domain.StudentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cql
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleDO> {

    /**
     * 获取用户所有角色信息
     *
     * @param userId
     * @param userType
     * @return
     */
    List<RoleDO> findRoleByUserId(@Param("userId") Integer userId, @Param("userType") String userType);
}
